package android.command.gateway;

import java.util.Map;

/**
 * Interface to observe responses of linux2android commands.
 * {@hide}
 */
interface IGatewayLinux2AndroidCommandResponseObserver {
    /**
     * Handle reponses of linux2android commands.
     *
     * @param response Response params in a Map.
     *         Map entries:
     *         <ul>
     *           <li>Key: {@link #IGatewayLinux2AndroidCommand#KEY_REQUEST_ID}: Id of which request this response responds to. Value: Type is String.</li>
     *           <li>Key: {@link #IGatewayLinux2AndroidCommand#KEY_RESULT}: Result in json for the command request identified by {@link #KEY_REQUEST_ID}. Value: Type is String.</li>
     *           <li>Key: {@link #IGatewayLinux2AndroidCommand#KEY_SHOW_ANDROID}: Whether to show android ui. Value: Type is boolean.</li>
     *         </ul>
     *
     * {@hide}
     */
    void onResponse(in Map response);
}
